class KeFuConfigData {
  String? title;
  String? desc;
  List<Btns>? btns;

  KeFuConfigData({this.title, this.desc, this.btns});

  KeFuConfigData.fromJson(Map<String, dynamic> json) {
    if (json["title"] is String) {
      title = json["title"];
    }
    if (json["desc"] is String) {
      desc = json["desc"];
    }
    if (json["btns"] is List) {
      btns = json["btns"] == null ? null : (json["btns"] as List).map((e) => Btns.fromJson(e)).toList();
    }
  }

  static List<KeFuConfigData> fromList(List<Map<String, dynamic>> list) {
    return list.map(KeFuConfigData.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> json = <String, dynamic>{};
    json["title"] = title;
    json["desc"] = desc;
    if (btns != null) {
      json["btns"] = btns?.map((e) => e.toJson()).toList();
    }
    return json;
  }
}

class Btns {
  String? key;
  String? title;
  int? view;
  dynamic display;
  Click? click;

  Btns({this.key, this.title, this.view, this.display, this.click});

  Btns.fromJson(Map<String, dynamic> json) {
    if (json["key"] is String) {
      key = json["key"];
    }
    if (json["title"] is String) {
      title = json["title"];
    }
    if (json["view"] is num) {
      view = (json["view"] as num).toInt();
    }
    display = json["display"];
    if (json["click"] is Map) {
      click = json["click"] == null ? null : Click.fromJson(json["click"]);
    }
  }

  static List<Btns> fromList(List<Map<String, dynamic>> list) {
    return list.map(Btns.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> json = <String, dynamic>{};
    json["key"] = key;
    json["title"] = title;
    json["view"] = view;
    json["display"] = display;
    if (click != null) {
      json["click"] = click?.toJson();
    }
    return json;
  }
}

class Click {
  String? react;
  String? option;

  Click({this.react, this.option});

  Click.fromJson(Map<String, dynamic> json) {
    if (json["react"] is String) {
      react = json["react"];
    }
    if (json["option"] is String) {
      option = json["option"];
    }
  }

  static List<Click> fromList(List<Map<String, dynamic>> list) {
    return list.map(Click.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> json = <String, dynamic>{};
    json["react"] = react;
    json["option"] = option;
    return json;
  }
}

class Example {
  int? errcode;
  String? message;
  List<HelpCateItem>? data;

  Example({this.errcode, this.message, this.data});

  Example.fromJson(Map<String, dynamic> json) {
    if (json["errcode"] is num) {
      errcode = (json["errcode"] as num).toInt();
    }
    if (json["message"] is String) {
      message = json["message"];
    }
    if (json["data"] is List) {
      data = json["data"] == null ? null : (json["data"] as List).map((e) => HelpCateItem.fromJson(e)).toList();
    }
  }

  static List<Example> fromList(List<Map<String, dynamic>> list) {
    return list.map(Example.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> json = <String, dynamic>{};
    json["errcode"] = errcode;
    json["message"] = message;
    if (data != null) {
      json["data"] = data?.map((e) => e.toJson()).toList();
    }
    return json;
  }
}

class HelpCateItem {
  int? id;
  String? cateName;

  HelpCateItem({this.id, this.cateName});

  HelpCateItem.fromJson(Map<String, dynamic> json) {
    if (json["id"] is num) {
      id = (json["id"] as num).toInt();
    }
    if (json["cate_name"] is String) {
      cateName = json["cate_name"];
    }
  }

  static List<HelpCateItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(HelpCateItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> json = <String, dynamic>{};
    json["id"] = id;
    json["cate_name"] = cateName;
    return json;
  }
}
